class images
{
  PImage splash;
  PImage story;
  PImage menuBackground;
  PImage credits;
  PImage easybg;
  PImage medbg;
  PImage hardbg;
  PImage palette;
  
 
  images()
  {
    background(100,100,100);
    splash = loadImage("images/titlescreen.jpg");
    story = loadImage("images/story.jpg");
    menuBackground = loadImage("images/trigalaxy.jpg");
    credits = loadImage("images/credits.jpg");
    easybg = loadImage("images/easybg.jpg");
    medbg = loadImage("images/medbg.jpg");
    hardbg = loadImage("images/hardbg.jpg");
    palette = loadImage("images/palette.jpg");
  }
  
  int panel = 1;
  void drawIntro()
  {
    if(panel > 2)
    {
     setGameState(1);
     return;
    }
    if(mouseJustPressed[0] == true)
    {
     panel++;
    }
    this.drawPanel(panel);
  }
  void drawPanel(int number)
  {
    switch(number) 
    {
      case 1:
        image(splash,0,0);
        break;
      case 2:
        image(story,0,0);
        break;
      default:
        background(0);
    }
  }
}

